package o;

import android.view.animation.Interpolator;

abstract class kj implements Interpolator {
    private final float[] ˊ;
    private final float ˋ = (1.0f / ((float) (this.ˊ.length - 1)));

    protected kj(float[] fArr) {
        this.ˊ = fArr;
    }

    public float getInterpolation(float f) {
        if (f >= 1.0f) {
            return 1.0f;
        }
        if (f <= 0.0f) {
            return 0.0f;
        }
        int min = Math.min((int) (((float) (this.ˊ.length - 1)) * f), this.ˊ.length - 2);
        float f2 = (f - (((float) min) * this.ˋ)) / this.ˋ;
        return ((this.ˊ[min + 1] - this.ˊ[min]) * f2) + this.ˊ[min];
    }
}
